﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="view_list_prename.aspx.cs" Inherits="view_list_prename" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">

    <div align="center"><br /><br /><br />
    <img src="Image/list-prename.png" alt=""/><br /><br />
        <asp:GridView ID="GridView1" runat="server" 
            AutoGenerateColumns="False" DataKeyNames="PRENAME_ID" 
            DataSourceID="OrclDataSource1" AllowPaging="True" AllowSorting="True" 
            ForeColor="#FFCC66" BorderColor="#4A1106" Width="300px" PageSize="20">
        <Columns>
            <asp:BoundField DataField="PRENAME_ID" HeaderText="PRENAME_ID" ReadOnly="True" 
                SortExpression="PRENAME_ID" >
            <ItemStyle HorizontalAlign="Center" />
            </asp:BoundField>
            <asp:BoundField DataField="PRENAME" HeaderText="PRENAME" 
                SortExpression="PRENAME" >
            <ItemStyle HorizontalAlign="Center" />
            </asp:BoundField>
        </Columns>
        <HeaderStyle BackColor="#993300" />
            <PagerStyle HorizontalAlign="Center" />
            <RowStyle HorizontalAlign="Center" />
    </asp:GridView>
        <asp:SqlDataSource ID="OrclDataSource1" runat="server" 
            ConnectionString="<%$ ConnectionStrings:ConnectionString %>" 
            ProviderName="<%$ ConnectionStrings:ConnectionString.ProviderName %>" 
            SelectCommand="SELECT PRENAME_ID, PRENAME FROM PRENAMES">
        </asp:SqlDataSource>

        <br />
        <asp:Button ID="Button1" runat="server" Text="<< Back" 
            onclick="Button1_Click" BackColor="#FFCC66" Height="25px" Width="85px" 
            BorderColor="#FF9966" /><br /><br />
</div>

</asp:Content>

